package net.factoryOpen.quickfactory.manufacturing.eng.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.factoryOpen.quickfactory.manufacturing.eng.mapper.EngCategoryEngineeringMapper;
import net.factoryOpen.quickfactory.manufacturing.eng.domain.EngCategoryEngineering;
import net.factoryOpen.quickfactory.manufacturing.eng.service.IEngCategoryEngineeringService;

import net.factoryOpen.quickfactory.system.mapper.SysBillFrozenMapper;

/**
 * 品类工艺Service业务层处理
 * 
 * @author factoryOpen
 * @date 2024-11-09
 */
@Service
public class EngCategoryEngineeringServiceImpl implements IEngCategoryEngineeringService 
{
    @Autowired(required = false)
    private EngCategoryEngineeringMapper engCategoryEngineeringMapper;

    /**
     * 查询品类工艺
     * 
     * @param id 品类工艺主键
     * @return 品类工艺
     */
    @Override
    public EngCategoryEngineering selectEngCategoryEngineeringById(Long id)
    {
        return engCategoryEngineeringMapper.selectEngCategoryEngineeringById(id);
    }

    /**
     * 查询品类工艺列表
     * 
     * @param engCategoryEngineering 品类工艺
     * @return 品类工艺
     */
    @Override
    public List<EngCategoryEngineering> selectEngCategoryEngineeringList(EngCategoryEngineering engCategoryEngineering)
    {
        return engCategoryEngineeringMapper.selectEngCategoryEngineeringList(engCategoryEngineering);
    }

    /**
     * 新增品类工艺
     * 
     * @param engCategoryEngineering 品类工艺
     * @return 结果
     */
    @Override
    public int insertEngCategoryEngineering(EngCategoryEngineering engCategoryEngineering)
    {
        engCategoryEngineering.setCreateTime(DateUtils.getNowDate());
        return engCategoryEngineeringMapper.insertEngCategoryEngineering(engCategoryEngineering);
    }

    /**
     * 修改品类工艺
     * 
     * @param engCategoryEngineering 品类工艺
     * @return 结果
     */
    @Override
    public int updateEngCategoryEngineering(EngCategoryEngineering engCategoryEngineering)
    {
        engCategoryEngineering.setUpdateTime(DateUtils.getNowDate());
        return engCategoryEngineeringMapper.updateEngCategoryEngineering(engCategoryEngineering);
    }

    /**
     * 批量删除品类工艺
     * 
     * @param ids 需要删除的品类工艺主键
     * @return 结果
     */
    @Override
    public int deleteEngCategoryEngineeringByIds(Long[] ids)
    {
        return engCategoryEngineeringMapper.deleteEngCategoryEngineeringByIds(ids);
    }

    /**
     * 删除品类工艺信息
     * 
     * @param id 品类工艺主键
     * @return 结果
     */
    @Override
    public int deleteEngCategoryEngineeringById(Long id)
    {
        return engCategoryEngineeringMapper.deleteEngCategoryEngineeringById(id);
    }

}
